import { VFC, Suspense, lazy as _lazy, LazyExoticComponent } from "react";
import { Wait } from './wait';
export function lazy($component: () => any): Promise<LazyExoticComponent<any>> {
    return Promise.all([$component(), Wait(500)]).then(res => res[0]);
}